package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 用户编辑角色DTO
 * @author kaka
 * @time 2018-9-7 13:42
 */
@Getter
@Setter
@ToString
public class UserAddRoleDTO extends BaseDTO {

    private static final long serialVersionUID = 4550049230309020555L;

    /**
     * 需要修改角色的用户userId
     */
    @NotBlank(message = "{dto.msg.userAddRole.targetUserId.NotBlank}")
    private String targetUserId;

    /**
     * 修改后的角色
     */
    @NotNull(message = "{dto.msg.userAddRole.roleId.NotNull}")
    private Integer roleId;
}
